import request from '@/utils/request'

// 获取位置树形结构
export function getLocationTree() {
    return request.get('/system/location/list')
}

// 获取部门树形结构
export function deptList() {
    return request.get('/department/tree')
}

export function getTransferList(data) {
    return request.get('/system/transfer/list',{ params: data })
}

export function getTransferById(data) {
    return request.get('/system/transfer/'+data)
}

export function addTransfer(data) {
    return request.post('/system/transfer', data)
}